//模块方式 推荐
YAHOO.Zergling.Module.add('test',{
	creater:'llinzzi',
	require:['editor','ycnani'],
	handler:function(){
		//private var here
		var YE = YAHOO.util.Event;
		var	YD = YAHOO.util.Ddom;
		var customVar;
		//event callback here 
		return {
			init:function(){
				console.log('module loaded');
        this.loader.addModule({
          name:'ycnani',
          type:'js',
          fullpath:'http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js'
        });
			},
			onPageReady:function(){
				console.log('YUI loaded');
			},
			onPageLoaded:function(){
				console.log('alldone');
				this.fire('onCustomEvent','d');
			},
			onCustomEvent:function(){
				console.log('dd');
				console.log(arguments);
				alert(this);
			}
		};
	}
});


/*
//敏捷方式 特殊情况下使用
YAHOO.Zergling.Event.subscribe('onPageRender',function(){
		alert('min');
});
*/
